package com.yesallchina.wxapp.officialaccount.config;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 *
 * 微信公众号的一些通用属性，如appId、appSecret
 *
 */
@ConfigurationProperties(prefix = "wxapp.officialaccount.common", ignoreUnknownFields = true)
public class WxOfficialAccountCommonProperties {
    // 公众号名称
    private String title;

    // 公众号描述
    private String summary;

    // 公众号ID
    private String publicId;

    // 微信应用appId
    private String appid;

    // 微信应用密钥
    private String appSecret;

    // 微信消息交互token
    private String messageToken;

    // 微信消息加密编码Key
    private String messageEncodingAesKey;

    // 微信支付商户ID
    private String payMchId;

    // 微信支付密钥
    private String payMchKey;

    // 微信支付密钥文件存放绝对地址
    private String payCertFileAbsPath;

    // 微信支付密钥文件密码
    private String payCertPassword;

    // 统一的支付回调入口
    private String payNotify;

    // 统一发起退款回调接口
    private String refundNotity;

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }

    public String getPublicId() {
        return publicId;
    }

    public void setPublicId(String publicId) {
        this.publicId = publicId;
    }

    public String getAppid() {
        return appid;
    }

    public void setAppid(String appid) {
        this.appid = appid;
    }

    public String getAppSecret() {
        return appSecret;
    }

    public void setAppSecret(String appSecret) {
        this.appSecret = appSecret;
    }

    public String getMessageToken() {
        return messageToken;
    }

    public void setMessageToken(String messageToken) {
        this.messageToken = messageToken;
    }

    public String getMessageEncodingAesKey() {
        return messageEncodingAesKey;
    }

    public void setMessageEncodingAesKey(String messageEncodingAesKey) {
        this.messageEncodingAesKey = messageEncodingAesKey;
    }

    public String getPayMchId() {
        return payMchId;
    }

    public void setPayMchId(String payMchId) {
        this.payMchId = payMchId;
    }

    public String getPayMchKey() {
        return payMchKey;
    }

    public void setPayMchKey(String payMchKey) {
        this.payMchKey = payMchKey;
    }

    public String getPayCertFileAbsPath() {
        return payCertFileAbsPath;
    }

    public void setPayCertFileAbsPath(String payCertFileAbsPath) {
        this.payCertFileAbsPath = payCertFileAbsPath;
    }

    public String getPayCertPassword() {
        return payCertPassword;
    }

    public void setPayCertPassword(String payCertPassword) {
        this.payCertPassword = payCertPassword;
    }

    public String getPayNotify() {
        return payNotify;
    }

    public void setPayNotify(String payNotify) {
        this.payNotify = payNotify;
    }

    public String getRefundNotity() {
        return refundNotity;
    }

    public void setRefundNotity(String refundNotity) {
        this.refundNotity = refundNotity;
    }

    @Override
    public String toString() {
        return "{"
                + "title\":" + title + "\","
                + "summary\":" + summary + "\","
                + "publicId\":" + publicId + "\","
                + "appid\":" + appid + "\","
                + "appSecret\":" + appSecret + "\","
                + "messageToken\":" + messageToken + "\","
                + "messageEncodingAesKey\":" + messageEncodingAesKey + "\","
                + "payMchId\":" + payMchId + "\","
                + "payMchKey\":" + payMchKey + "\","
                + "payCertFileAbsPath\":" + payCertFileAbsPath + "\","
                + "payCertPassword\":" + payCertPassword + "\","
                + "payNotify\":" + payNotify + "\""
                + "}";
    }
}
